
<div style="display: none; background-color: yellow; font-size: 9pt; text-align: center; padding: 3px; margin-bottom: 4px;" id="PopBlockNotification">
  <div style="width: 760px;">
    <table align="center" border="0" cellpadding="3" cellspacing="0">
      <tbody><tr>
          <td>
            <img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/animatedexclamation.gif" alt="!">
          </td>
          <td align="center">
            Your popup blocker stopped you from chatting with a member. <a href="javascript:void(0);" onclick="popNewICWindow();">click here</a> to open the window<br>
            <a href="#help//3#22">Click here</a> to learn how to disable your popup blocker on BBPeopleMeet.com
          </td>
          <td>
            <img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/animatedexclamation.gif" alt="!">
          </td>
        </tr>
      </tbody></table>
  </div>
</div>


<div id="columnleft">
  <div id="connectlistarea">
    <div class="menulistarea">
      <div id="menuyesvote" class="menuyesvote menulistareaoff color-main">
        <p>Yes Votes</p>
        <div id="mainYesCountStarBurst" class="bluestarburstyes" style="display:none;">

          <p><a id="mainYesCount" class="color-white">0<span id="yesPlus"></span></a></p>

        </div> 

      </div>
      <div id="menufavorites" class="menufavorites menulistareaoff color-main"> 
        <p>Favorites</p>
        <div id="mainFavoriteCountStarBurst" class="bluestarburstfavorites" style="display:none;">

          <p><a id="mainFavoriteCount" class="color-white">0<span id="favoritePlus"></span></a></p>

        </div>

      </div>
      <div id="menuviews" class="menuviews menulistareaon">
        <p>Views</p>
        <!--<div id="mainViewCountStarBurst" class="bluestarburstviews" style="">

          <p><a id="mainViewCount" class="color-white">1<span id="viewPlus"></span></a></p>

        </div>-->

      </div>
    </div>
  </div>
  <div id="YesVoteContent" style="display:none;">
    Loading...
  </div>
  <div id="FavoriteContent" style="display:none;">
    Loading...
  </div>
  <div id="ViewContent" style="">


    <script>
              $jq(document).ready(PeopleMedia.Connect.initViews('Received'));
    </script>    
    <div class="yescontent">
      
      <div class="yescontenttoprow">
        <p class="results"><span id="viewCount"><?php echo count($totalUserView);?> Results</span></p>
        <div id="paginationalone" class="color-main">
          <div id="paginationViewsTop">
            <?php echo $data['pagination']['html']; ?>
            
          </div>
        </div>
        <div class="toprowfloatright">
          <div class="listpagelinksarea">
            <div id="listViewsSent" onclick="PeopleMedia.Connect.goToViewsSent();" class="listpagelinksarea3">
              <p><a href="javascript:;">I Viewed</a></p>
            </div>
            <!--
            <div class="tooltipwrapper">
              <div id="viewedme" class="tooltip" style="">
                <div class="tooltipclose" onclick="PeopleMedia.Connect.hideViewPopUp();">
                  <img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/mediumclosebtn.png">
                </div>
                <div class="box shadow border-color-main">
                  <div class="tooltipleft color-icon">1</div>
                  <div class="tooltipright">member viewed your<br>profile. <span class="color-main" onclick="PeopleMedia.Connect.goToViewsReceived();">Find out who!</span></div>
                </div>
                <div class="arrowarea">
                  <img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/arrowdown_small.png">
                </div>
              </div>
            </div>
            -->
            <div id="listViewsReceived" onclick="PeopleMedia.Connect.goToViewsReceived();" class="listpagelinksarea1 listpagelinksarea1on">
              <p><a href="javascript:;">Viewed Me</a></p>

              <!--<p id="starburstViewsReceivedCount" class="starlink" style=""><a href="#" id="listViewsReceivedCount">1</a><span></span></p>-->

            </div>
          </div>
        </div>
      </div>
      <div class="yescontentmiddlerow" id="ViewsListContent">
         <?php if(count($totalUserView)>0): ?>
        <div class="inboxcontenttoprow2">
          <div class="inboxcontenttoprow2col1">
            <input name="" id="selectAllCheckBoxViews" value="" onclick="PeopleMedia.Connect.selectAllDeleteCheckBoxes('Views')" type="checkbox">
            <p><a href="#" onclick="PeopleMedia.Connect.clickSelectArea('Views')">Select All</a></p>
          </div>
          <div class="inboxcontenttoprow2col2"> <a title="Delete" class="button_style_send" href="#" onclick="PeopleMedia.Connect.deleteSelectedMembers('Views', 2, <?php echo $data['filter']; ?>, 1);">Delete</a> </div>
        </div>
        <?php 
          else: echo $data['noRecord'];
          endif; 
        ?>
        <div id="connectViewsMemberList">
          <?php 
          $count = 0;
          foreach($rsUserView as $item):
          ?>
          <div class="profilerepeat " id="connectItem<?php echo $count;?>Views">
            <div class="profilerepeatcol0">
              <input name="<?php echo $item['user_id'];?>" id="checkboxDelete<?php echo $count;?>Views" class="deleteCheckboxViews" value="" onchange="PeopleMedia.Connect.selectSingleDeleteCheckBox('Views', <?php echo $count;?>)" type="checkbox">
            </div>
            <div class="profilerepeatcol1 ">

              <div id="profileoverlayplace">
              </div>
              <a href="<?php echo FRONT_SITE_URL; ?>user/profile/viewprofile?profile=<?php echo $item['user_id'];?>" title="bighuggs1">
                <?php 
                  $link_img = FRONT_SITE_URL . 'www/images/images1/noPhoto-1.gif';
                  if ($item['link_img'] != null) 
                    $link_img = FRONT_SITE_URL. 'www/uploads/photos/thumbs/thumb_'. $item['link_img']; 
                  else {
                    $link_img = $item['gender'] == 'male' ? FRONT_SITE_URL . 'www/images/images1/noPhoto-1.gif' : FRONT_SITE_URL . 'www/images/images1/noPhoto-2.gif';
                  } 
                ?>
                <img src="<?php echo $link_img; ?>" title="<?php echo $item['username']; ?>" class="userpic" border="0">
              </a>
            </div>
            <div class="profilerepeatcol2">
              <div class="profilerepeatcol2row1">
                <p><a href="<?php echo FRONT_SITE_URL; ?>user/profile/viewprofile?profile=<?php echo $item['user_id'];?>"><?php echo $item['username'];?></a></p>
                <img title="Viewed" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/eyeicon.png">
                <p class="lightgraytext timestampcl">Viewed: <?php echo changedDateFormat($item['date_view'],'d-m-Y');?></p>
              </div>


              <div class="profilerepeatcol2row2">

                <p><?php echo calculateYearOld($item['birthdate']);?> | <?php echo $item['country_name']; ?>
                                              </p>
              </div>

              <div class="profilerepeatcol2row3">
                <p><span class="lightgraytext">A little about me: </span>
                  <?php echo $item['greeting1'];?></p>
              </div>

              <div class="profilerepeatcol2row4">
                


                <a href="javascript:void(0);" class="SaveToFavorites<?php echo $count;?>Views" title="Save as Favorite" onclick="PeopleMedia.Connect.toggleFavorite(true, '<?php echo $item['user_id'];?>', <?php echo $count;?>, 'Views', 'connectviews')" style="<?php echo $item['user_favorited']!=null?'display:none':'display:inline'; ?>">
                  <img title="Save as Favorite" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/favoriteicon.png" border="0"> 
                </a>
                <a href="javascript:void(0);" class="RemoveFromFavorites<?php echo $count;?>Views" onclick="PeopleMedia.Connect.toggleFavorite(false, '<?php echo $item['user_id'];?>', <?php echo $count;?>, 'Views', 'connectviews')" title="Saved as Favorite" style="<?php echo $item['user_favorited']==null?'display:none':'display:inline'; ?>">
                  <img title="Saved as Favorite" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/favoritedicon.png" border="0">   
                </a>
                
                <a href="<?php echo FRONT_SITE_URL; ?>user/profile/viewprofile?profile=<?php echo $item['user_id'];?>"> <img title="Send a Message" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/messageicon.png" border="0"> </a> 
              </div>

            </div>

            <div class="profilerepeatcol3">
              <textarea maxlength="3000" id="connectInlineMessage0Views" class="connectWriteMessageTextArea" cols="" rows="">Write a quick message...</textarea>

              <a href="javascript:void(0);" id="SendMessageButtonLink" onclick="PeopleMedia.Connect.sendMessage('<?php echo $item['user_id'];?>', <?php echo $count;?>, 'Views', '<?php echo $item['username'];?>', 2, <?php echo $data['filter']; ?>, 1, 'connectviews', 25, 'None');" class="button_style_send" title="Send">Send</a> </div>
            <div class="profilerepeatcol4"> <a href="javascript:void(0);" onclick="PeopleMedia.Connect.removeItem(<?php echo $count;?>, 'Views', 'connectviews')" title="Delete View"><img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/hidebutton.png" class="hide1" border="0"></a> </div>
            <p class="clearfix">&nbsp;</p>
            <div class="popupshowblock" id="popupshowdelete0Views" style="display:none;">
              <div class="overlayplace">
                <div class="popupshapestyle deleteactionoverlay">
                  <div class="largestclosebtn"> <a id="PopupBlockCloseButton" href="javascript:void(0);" title="Close" onclick="PeopleMedia.Connect.hideRemoveItemPopup(<?php echo $count;?>, 'Views')" class="closebtn"><img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/largestclosebtn.png" border="0"></a> </div>
                  <div class="blockcontent">
                    <h1>Are you sure you want to delete <span id="PopupBlockUsernameSpan">this View</span>?</h1>
                    <div class="sharecontentbuttonarea">
                      <p class="blocklinksbtn">
                        <a href="javascript:void(0);" onclick="PeopleMedia.Connect.deleteConnectItem('<?php echo $item['user_id'];?>', <?php echo $count;?>, 'Views', 2, <?php echo $data['filter']; ?>, 1)">Delete</a>
                        <a href="javascript:void(0);" onclick="PeopleMedia.Connect.hideRemoveItemPopup(<?php echo $count;?>, 'Views')" class="button_style">No</a>
                      </p>
                    </div>
                  </div>
                </div>
              </div>
              <div class="overlaywholescreen"></div>
            </div>

          </div>
        <?php 
          $count++;
          endforeach; 
        ?>
        </div>

        <div class="resultsloadingoverlay" id="LoadingResultsDiv" style="display:none">
          <div class="resultsloading bgcolor-main">
            <h1>
              Sending your message...</h1>
            <div class="loadinggraphic">
              <img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/waitwheel.gif" alt="">
            </div>
            <p class="clearfix">
              &nbsp;</p>
          </div>
        </div>

      </div>

      <div class="bottomrow">

        <div id="paginationsearch" class="color-main">
          <div id="paginationViewsBottom">
            <?php echo $data['pagination']['htmlBottom']; ?>
          </div>
        </div>

      </div>

    </div>        </div>

</div>


<p class="clearfix">&nbsp;</p>
<script>

      $jq(document).ready(function () {
        PeopleMedia.Connect = PeopleMedia.Connect || {};
        PeopleMedia.Connect.Actions =
            {
                AddFavoriteUrl: FRONT_SITE_URL+'ajax/Primary/SaveToFavorites',
                  RemoveFavoriteUrl: FRONT_SITE_URL+'ajax/Primary/Unfavorite',
                  SendBirthdayFlirtUrl: FRONT_SITE_URL+'ajax/Primary/SendBirthdayFlirt',
                  GetFavoriteUrl: FRONT_SITE_URL+'home/Connect/GetFavorites',
                  GetViewUrl: FRONT_SITE_URL+'home/Connect/GetViews',
                  GetYesVotesUrl: FRONT_SITE_URL+'home/Connect/GetYesVotes',
                  SendMessageUrl: FRONT_SITE_URL+'ajax/Primary/SendMessage',
                  ReportConcernUrl: FRONT_SITE_URL+'ajax/Primary/ReportConcern',
                  LikePhotoUrl: FRONT_SITE_URL+'ajax/Primary/LikePhoto',
                  GetOneClickFlirtUrl: FRONT_SITE_URL+'ajax/Primary/SendOneClickFlirt',
                  GetMutualYesVoteUrl: FRONT_SITE_URL+'home/Connect/GetMutualYesVotes',
                  GetSentYesVoteUrl: FRONT_SITE_URL+'home/Connect/GetSentYesVotes',
                  GetReceivedYesVoteUrl: FRONT_SITE_URL+'home/Connect/GetReceivedYesVotes',
                  GetMutualFavoriteUrl: FRONT_SITE_URL+'home/Connect/GetMutualFavorites',
                  GetSentFavoriteUrl: FRONT_SITE_URL+'home/Connect/GetSentFavorites',
                  GetReceivedFavoriteUrl: FRONT_SITE_URL+'home/Connect/GetReceivedFavorites',
                  GetSentViewsUrl: FRONT_SITE_URL+'home/Connect/GetSentViews',
                  GetReceivedViewsUrl: FRONT_SITE_URL+'home/Connect/GetReceivedViews',
                  RefreshPaginationURL: FRONT_SITE_URL+'home/Connect/RefreshPagination',
                  RefreshPageCountsUrl: FRONT_SITE_URL+'home/Connect/RefreshPageCounts',
                  DeleteConnectItemUrl: FRONT_SITE_URL+'home/Connect/DeleteConnectItem',
                  DeleteMultipleConnectItemsUrl: FRONT_SITE_URL+'home/Connect/DeleteMultipleConnectItems'

                };
        });

    </script>